﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WeiBo.Model;

namespace WeiBo
{
    /// <summary>
    /// Sub 的摘要说明
    /// </summary>
    public class Sub : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            var user=context.Request["user"];
            var subUser= context.Request["subUser"];
            MessageCenter.Subscribe(user, subUser);
            context.Response.Write("user:" + user + ",subUser:" + subUser);

        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}